package com.example.demo.study.objectpolymorphic;

public class Cat extends Animal{

    // 重写eat方法
    @Override
    public void eat() {
        System.out.println("猫吃鱼");
    }

    public void catchMouse() {
        System.out.println("猫捉老鼠");
    }
}
